import { createApp } from 'vue'
import App from './App.vue'
// import 'virtual:uno.css'
// import 'uno.css'
import './style.css'
import { renderWithQiankun, qiankunWindow } from 'vite-plugin-qiankun/dist/helper';

let app;

renderWithQiankun({
  mount(props) {
    console.log('app1 mount');
    app = createApp(App);
    app.mount(props.container.querySelector('#app'));
  },
  bootstrap() {
    console.log('app1 bootstrap');
  },
  unmount(props) {
    console.log('app1 unmount');
    app.unmount();
  },
});

if (!qiankunWindow.__POWERED_BY_QIANKUN__) {
  createApp(App).mount('#app');
}